export const BASE_URL = "http://localhost:8088/";
export const IMG_URL = "http://127.0.0.1:8088/";
export const ADD = 0;
export const EDIT = 1;
export const SHOW = 2;
export const NORMAL = 0;
export const ADMIN = 1;
export const DEFAULT_PWD = 123456;
export const PREFIX_BOOK = "BM-";
export const aMenu = [
  { index: "user", name: "用户管理", icon: "" },
  { index: "category", name: "分类管理", icon: "" },
  { index: "book", name: "书籍管理", icon: "" },
  // { index: 'message', name: '留言管理', icon: '' },
  { index: "correction", name: "报修处理", icon: "" },
  { index: "borrow", name: "借取审核", icon: "" },
  { index: "log", name: "日志管理", icon: "" },
  { index: "info", name: "个人主页", icon: "" },
];

export const aMiniMenu = [
  "user",
  "category",
  "book",
  "message",
  "correction",
  "borrow",
  "log",
];

export const levelState = [
  { id: 0, type: "primary", name: "普通" },
  { id: 1, type: "danger", name: "管理员" },
];

export const borrowState = [
  { id: 0, type: "primary", name: "审核中", value: "申请中" },
  { id: 1, type: "warning", name: "已拒绝", value: "被拒绝" },
  { id: 2, type: "success", name: "借阅中", value: "已借阅" },
  { id: 3, type: "danger", name: "归还中", value: "归还中" },
  { id: 4, type: "info", name: "已归还", value: "借阅图书" },
];

export const orderState = [
  { value: 0, label: "出库中", type: "", text: "出库中" },
  { value: 1, label: "派送中", type: "warning", text: "派送中" },
  { value: 2, label: "已送达", type: "danger", text: "已送达,点击签收" },
  { value: 3, label: "已收货", type: "success", text: "已购买" },
  { value: 4, label: "立即购买", type: "", text: "立即购买" },
];
export const replyState = [
  { id: 0, type: "primary", name: "未回复" },
  { id: 1, type: "success", name: "已回复" },
];

export const errataState = [
  { id: 0, type: "primary", name: "待处理" },
  { id: 1, type: "info", name: "无效问题" },
  // { id: 2, type: 'warning', name: '处理中' },
  { id: 2, type: "success", name: "已处理" },
];
